﻿<Window x:Class="SuperQuery.SaveItems"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Save Items" Height="300" Width="300"
        TextOptions.TextFormattingMode="Display" Icon="Icons/SuperQuery.ico"
        WindowStartupLocation="CenterScreen" ShowInTaskbar="False" ResizeMode="NoResize">
    <DockPanel>
        <!--Instructions-->
        <TextBlock DockPanel.Dock="Top" TextWrapping="Wrap" Margin="5">
            The following queries have not been saved. Select
            which ones you would like to save and click "Save" to save, "Don't save" to close without saving,
            or "Cancel" to cancel the close process:
        </TextBlock>

        <!--Dialog Buttons-->
        <DockPanel DockPanel.Dock="Bottom" LastChildFill="False">
            <Button x:Name="btnCancel" DockPanel.Dock="Right" Click="btnCancel_Click" KeyboardNavigation.TabIndex="3">_Cancel</Button>
            <Button x:Name="btnNoSave" DockPanel.Dock="Right" Click="btnNoSave_Click" KeyboardNavigation.TabIndex="2">_Don't Save</Button>
            <Button x:Name="btnSave" DockPanel.Dock="Right" Click="btnSave_Click" KeyboardNavigation.TabIndex="1">_Save</Button>
        </DockPanel>
        
        <!--List of queries to save-->
        <ListBox Margin="5,0,5,0" KeyboardNavigation.TabIndex="0"
                 ItemTemplate="{StaticResource SelectableQueryView}" ItemsSource="{Binding QueryViewsToSave}"/>
    </DockPanel>
</Window>
